package com.example.springboottestgit.bean;

/**
 * @description:普通异常
 * @author: ZZZ
 */
public class CommonException extends RuntimeException {
    private String code;
    private String desc;

    public CommonException(String code, String message, String desc) {
        super(message);
        this.code = code;
        this.desc = desc;
    }

    public CommonException(String code, String desc) {
        super(desc);
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}